<!-- 课件 -->
<script setup>
import { ref } from 'vue'
import { Search } from '@element-plus/icons-vue'

const inputValue = ref('')
const serach = () => {
  console.log(inputValue.value)
}
</script>

<template>
  <el-card class="my-card">
    <div class="header">
      <div>
        <el-button type="primary" round>新建</el-button>
      </div>
      <el-input
        v-model="inputValue"
        :suffix-icon="Search"
        class="input-header"
        placeholder="搜索"
        @keyup.enter="serach"
      />
    </div>
    <div class="exam-text">
      <div class="penson-detail">
        <course style="margin-right: 20px"></course>
        <a
          target="_blank"
          href="https://wenku.baidu.com/view/b5f6a53624d3240c844769eae009581b6bd9bd86.html?_wkts_=1719224959014"
          >查看数据库课件</a
        >
      </div>
      <div class="penson-detail">
        <course style="margin-right: 20px"></course>
        <a
          target="_blank"
          href="https://wenku.baidu.com/view/d0632848f28583d049649b6648d7c1c708a10bff?aggId=b5f6a53624d3240c844769eae009581b6bd9bd86&fr=catalogMain_text_ernie_recall_feed_index%3Awk_recommend_main_graph&_wkts_=1719225028403"
          >数据库设计与应用</a
        >
      </div>
    </div>
  </el-card>
</template>

<style lang="scss" scoped>
.my-card {
  margin-top: 6.25rem;

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    height: 3.75rem;
    border-bottom: 1px solid #e2e2e2;

    .input-header {
      width: 200px;

      :deep(.el-input__wrapper) {
        border-radius: 50px;
      }
    }
  }

  .exam-text {
    display: flex;
    flex-direction: column;
    margin: 10px;
    width: 100%;
    height: 70px;

    .penson-detail {
      margin-top: 15px;
      a {
        text-decoration: none;
        color: black;
      }
    }
  }
}
</style>
